package cn.lyjuan.payment.third.base.pay.chl.impl.weixin.bean;

import cn.lyjuan.payment.third.base.pay.chl.impl.weixin.enums.WxTradeType;
import cn.lyjuan.payment.third.base.pay.vo.req.PayReq;

public class WxPayReq implements PayReq.IPayReq {
    /**
     * 微信交易类型
     */
    protected WxTradeType tradeType;

    /**
     * 商品ID
     */
    protected Long goodsId;

    /**
     * 随机字符串
     */
    protected String noncestr;

    public WxPayReq() {
    }

    public WxPayReq(WxTradeType tradeType, String noncestr) {
        this.tradeType = tradeType;
        this.noncestr = noncestr;
    }

    public WxPayReq(WxTradeType tradeType, Long goodsId, String noncestr) {
        this.tradeType = tradeType;
        this.goodsId = goodsId;
        this.noncestr = noncestr;
    }

    public WxTradeType getTradeType() {
        return tradeType;
    }

    public void setTradeType(WxTradeType tradeType) {
        this.tradeType = tradeType;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getNoncestr() {
        return noncestr;
    }

    public void setNoncestr(String noncestr) {
        this.noncestr = noncestr;
    }

    @Override
    public String toString() {
        return "WxPayReq{" +
                "tradeType=" + tradeType +
                ", goodsId=" + goodsId +
                ", noncestr='" + noncestr + '\'' +
                '}';
    }
}
